import requests


class IhrmLoginApi:

    @classmethod
    def ihrm_login_api(self,req_boby):
        # 准备请求数据的行头体
        req_url = "http://ihrm-test.itheima.net/api/sys/login"
        req_l_body = req_boby
        # 发送请求
        resp = requests.post(url=req_url, json=req_l_body)
        # 查看结果
        return resp

